package com.example.datachangerecord.record.eneity;

import jakarta.servlet.http.HttpServletRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.util.Date;

/**
 * @author xyj
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class RequestContextRecordData extends ContextRecordData {

    /**
     * 请求
     */
    private HttpServletRequest request;

    private String userId;

    private String userName;

    private Date operateTime;

    private String ip;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
